package com.example.one.service;

import com.example.one.pojo.WalletDetails;

import java.util.List;

/**
 * Copyright (C), 2017-2022, MIDOU
 * ClassName: WalletDetailService
 * Author:   pangshu
 * Date:     2022/10/28 18:17
 * Version: 1.0
 * Description:明细管理
 */

public interface WalletDetailService {
    /**
     * @Author:pangshu
     * @Description: 添加钱包操作记录
     * @Date:21:33 2022/10/28
     * @Param:
     * @return: java.lang.Integer
     **/
    Integer insertWalletDetail(WalletDetails walletDetails);

    /**
     * @Author:pangshu
     * @Description: 根据订单编号查询订单信息
     * @Date:21:34 2022/10/28
     * @Param:
     * @return: com.example.one.pojo.WalletDetails
     **/
    WalletDetails getDetailById(Integer detailId);

    /**
     * @Author:pangshu
     * @Description: 通过用户ID查询账单
     * @Date:22:39 2022/10/28
     * @Param:
     * @return: java.util.List<com.example.one.pojo.WalletDetails>
     **/
    List<WalletDetails> getDetailByUserId(Integer userId);
}
